#if !defined(AFX_SELECTLESSONDIALOG_H__3A4632A1_1952_11D6_8D1A_A1202D23A477__INCLUDED_)
#define AFX_SELECTLESSONDIALOG_H__3A4632A1_1952_11D6_8D1A_A1202D23A477__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//SelectLessonDialog.h : header file
#include "SelectInformationset.h"
//#include "LessonInformationset.h"
//#include "TeacherInformationset.h"
//#include "StudentInformationset.h"
//

/////////////////////////////////////////////////////////////////////////////
// CSelectLessonDialog dialog

class CSelectLessonDialog : public CDialog
{
// Construction
public:
	CSelectLessonDialog(CWnd* pParent = NULL);   // standard constructor
private:
	CDatabase* m_database;
	CRecordset* m_pset;
	CSelectInformationset* m_pSelectset;
	CDBVariant varValue;

//	CLessonInformationset* m_pLessonset;
//	CTeacherInformationset* m_pTeacherset;
//	CStudentInformationset* m_pStudentset;

	// Dialog Data
	//{{AFX_DATA(CSelectLessonDialog)
	enum { IDD = IDD_SELECT_LESSON };
	CButton	m_ButtonPolitics;
	CButton	m_ButtonNature;
	CButton	m_ButtonMath;
	CButton	m_ButtonLaw;
	CButton	m_ButtonEnglish;
	CButton	m_ButtonChinese;
	CListCtrl	m_ListCtrl_Compound;
	CEdit	m_EditStudentNumber;
	int		m_StudentNumber;
	int		m_Chinese;
	int		m_English;
	int		m_Law;
	int		m_Nature;
	int		m_Politics;
	int		m_Math;
	//}}AFX_DATA

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSelectLessonDialog)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSelectLessonDialog)
	afx_msg void OnChinese();
	afx_msg void OnEnglish();
	afx_msg void OnLaw();
	afx_msg void OnMath();
	afx_msg void OnNature();
	afx_msg void OnPolitics();
	virtual BOOL OnInitDialog();
	afx_msg void OnKillfocusStudentnumber();
	afx_msg void OnGo();
	afx_msg void OnSetfocusStudentnumber();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
//	void CloseRecordset();
//	void OpenRecordset();
	void InitialCtrlList();
	void GetRadioInitState();
	void AddNewRecord();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SELECTLESSONDIALOG_H__3A4632A1_1952_11D6_8D1A_A1202D23A477__INCLUDED_)
